/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.modules.admin.entity.MaintainCheckHistory;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;

import java.util.List;

/**
 * 点检内容历史记录视图实体类
 *
 * @author BladeX
 * @since 2021-05-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MaintainCheckHistoryVO对象", description = "点检内容历史记录")
public class MaintainCheckHistoryVO extends MaintainCheckHistory {
	private static final long serialVersionUID = 1L;

	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	/**
	 * 维保内容
	 */
	@ApiModelProperty("维保内容")
	private String checkContent;

	private String templateContentName;

	/**
	 * 维保要求描述
	 */
	@ApiModelProperty("维保要求描述")
	private String checkDesc;

	/**
	 * 状态 1-正常 2-保养 3-异常
	 */
	@ApiModelProperty("状态 1-正常 2-保养 3-异常")
	private Integer status;

	@JsonSerialize(using = ToStringSerializer.class)
	private Long updateUser;

	/**
	 * 历史检查项操作记录
	 */
	@ApiModelProperty("历史检查项操作记录")
	private List<MaintainCheckRecordVO> recordVOS;

}
